package com.bob.blogs.model.po;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Version;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author bob
 * @create 2019-07-05
 */
@Data
@Document(collection = "blog")
public class BlogPo {
    @Id
    private String id;
    private String title;
    private String description;
    @Version
    private Integer version;
}
